package com.itheima.genericity2;

import com.itheima.genericity1.Student;

public class Test {

    public static void main(String[] args) {

        //泛型方法

        //需求：打印任意数组中的元素
        String[] arr = {"aa","bbb","cd"};
        printArray(arr);

        Student[] stu = new Student[3];
        printArray(stu);

        String max1 = getMax(arr);
        Student max2 = getMax(stu);
    }

    public static <T> void printArray(T[] arr){

    }

    public static <T> T getMax(T[] arr){
        return null;
    }
}
